package br.com.officium.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * This listener is notified when the context is initialized.
 *
 * @author Ivo
 */
public class OfficiumContextListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("Initializing Officium: " + sce.getServletContext().getServerInfo());
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("Destroying Officium: " + sce.getServletContext().getServerInfo());
    }
    
}
